<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery-1.8.0.min.js"></script>
		<include file="Public:js_editor" />
		<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K){
				editor = K.create("#content",{
					uploadJson:'{:U("uploadfile/uploadeditor")}',
					allowFileManager:true,
					width : "100%",
					fileManagerJson:'{:U("filemanage/viewlist")}',
					sessionid : '<?php echo $_COOKIE["PHPSESSID"];?>',
					afterUpload:function(data){
						if($("#content_attachment").val() == ""){
			       			$("#content_attachment").attr("value",data);
			       		}else{
			       			$("#content_attachment").attr("value",$("#content_attachment").val()+"|"+data);
			       		}
					}
				});
			});
		</script>
	</head>
	<body>
		
		<include file="Public:position" />
		
		<form action="{:U('insert')}" method="post">
		<input type="hidden" name="content_attachment" id="content_attachment" value="" />
		<input type="hidden" name="type" value="article" />
		<input type="hidden" name="lang" value="zh-cn" />
		<table width="100%" class="form_table">
			<tr>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td align="right" width="90">公告标题</td>
				<td align="left"><input type="text" name="title" class="input_text w480" /></td>
			</tr>
			<tr>
				<td align="right">状态</td>
				<td align="left">
					<input type="radio" name="status" value="1" checked="checked" /> 显示 &nbsp;&nbsp;
					<input type="radio" name="status" value="0" /> 隐藏 &nbsp;&nbsp;
				</td>
			</tr>
			<tr>
				<td align="right">公告内容</td>
				<td align="left"><textarea name="content" id="content" style="width: 90%; height:260px;"></textarea></td>
			</tr>
			<tr>
				<td align="right"></td>
				<td align="left">
					<input type="submit" class="submit" value="提交表单" />
				</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
			</tr>
		</table>
		</form>
	</body>
</html>